﻿using UnityEngine;
using System.Collections;

public class TestScaleBack : MonoBehaviour {

	UIRoot root;
	public float rootActiveHeight;
	public float activeHeight;
	// Use this for initialization
	void Start () {
	
		root = GetComponentInParent<UIRoot> ();
		if (root == null)
			Destroy (this);
		rootActiveHeight = root.manualHeight/(float)(root.activeHeight);
		transform.localScale += Vector3.right* rootActiveHeight-new Vector3(1,0,0) ;
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
